package com.plian.system.constant.sys;

public interface SystemConstant {

    int YES = 1;

    int NO = 0;

    String ZERO = "0";

    /**
     * redis 用户登录错误次数 key前缀
     */
    String USER_LOGIN_ERR_NUM_KEY = "userLoginErrNum";

    long LOGIN_ERR_NUM_TIME = 60 * 60;

    long THREE_MONTH_TIME = 3L*30L*24L*60L*60L*1000L;

    /**
     * 登录失败 上限次数
     */
    int LOGIN_MAX_ERR_NUM = 10;

    /**
     * xlsx后缀
     */
    String XLSX_SUFFIX = ".xlsx";

    /**
     * xls后缀
     */
    String XLS_SUFFIX = ".xls";

    /**
     * doc后缀
     */
    String DOC_SUFFIX = ".doc";

    String EXCEL_DEMO_PATH = "/exceldemo/";

    /**
     * 用户导出模板路径
     */
    String USER_EXCEL_PATH = EXCEL_DEMO_PATH + "user.xlsx";

    /**
     * excel contentType
     */
    String EXCEL_CONTENT_TYPE = "application/vnd.ms-excel";

    /**
     * 文件
     */
    String FILE = "file";
}
